<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 双向绑定多选框 -->
    <div id="app">
        <label for="">
            <input type="checkbox" value="篮球" v-model="hobbies">篮球
        </label>
        <label for="">
            <input type="checkbox" value="足球" v-model="hobbies">足球
        </label>
        <label for="">
            <input type="checkbox" value="乒乓球" v-model="hobbies">乒乓球
        </label>
        <label for="">
            <input type="checkbox" value="羽毛球" v-model="hobbies">羽毛球
        </label>
        <div>你的爱好是{{ hobbies }}</div>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data(){
                return {
                    hobbies:[]
                }
            },
            methods:{

            }
        })
    </script>
</body>
</html>